export default {
    namespaced: true,
    state: {
        id: 0,
        name: '',
        org_id: null,
        isSuperAdmin: false,
        config: {},
    },
    mutations: {
        init(state, data) {
            state.id = data.id;
            state.name = data.name;
            state.org_id = data.org_id;
            state.isSuperAdmin = data.isSuperAdmin;
            state.config = data.config || {};
        },
        configLayoutAsideWidth(state, width) {
            state.config.layout_aside_width = width;
        }
    },
}
